<?php

#    Document   : user_images
#    Created on : May 9, 2011, 5:24:19 PM
#    Author     : ClarkT AKA FalleN
#    Company    : Amodity
#    Web        : http://www.amodity.com
#    Copyright  : 2011

//status's from cp functions
if (isset($status)) {
  echo $status . '<br />';  
}

//get user images
echo '<div id="userimages"><p>'.$this->lang->line('cp_your_images').'</p>';
if (empty($row)) {
    echo $this->lang->line('cp_no_images').' ' . anchor('upload', $this->lang->line('cp_get_started'));
} else {
    //echo results
    echo '<ul>';
    for ($i = 0; $i < $total; $i++) {
        echo '<li>'. '<img src="'. base_url(). $upload_path .$row[$i]['name']. '" />' .':'.$row[$i]['name'].'</li>' . anchor('usercp/delete/'.$row[$i]['name'], 'Remove Image');
    }
    echo '</ul>';
}
echo $pagination;
echo '</div>';
?>